package com.hengda.museumonline.http;

import android.content.Context;

import com.yolanda.nohttp.NoHttp;
import com.yolanda.nohttp.RequestMethod;
import com.yolanda.nohttp.rest.CacheMode;
import com.yolanda.nohttp.rest.Request;

/**
 * @author：JFWU on 2016/9/20 13:14
 * @E-mail：jeffy12138@126.com
 */
public class GetData {

    public static Request getNews(Context context, String url, String p, String v, int pid, int offset, int size) {
        Request request = NoHttp.createStringRequest(url, RequestMethod.GET);
        request.add("p", p);
        request.add("v", v);
        request.add("pid", pid);
        request.add("offset", offset);
        request.add("size", size);

        return request;
    }
}
